package ophiux.wechatpay.sdk.test;

import ophiux.wechatpay.sdk.common.utils.HttpUtil;



public class test {
	
   
 
    public static void main(String[] args) {
    	try {
//    		String url="https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wx394240ecef75c40a&secret=9a4c4cf7d9616541c117e2204afafe35";
//			System.out.println(HttpUtil.httpsRequest(url, "GET", ""));
			
			
			
			
//    		String url1="https://api.weixin.qq.com/cgi-bin/menu/get?access_token=yMVnQZSRWeBlM6DR_PBehPLkTXQnj3M4iQYRDMeA4K6M-fAMAJxEzBW7zvzFCWyRGkgxl_HEZ-AfUchwQ34a2bKhSnYY9kF9PaLCbXv54ABIlmZ-ZG7qWczbjRq7iFPbLNVbAHASUC";
//    		System.out.println(HttpUtil.httpsRequest(url1, "GET", ""));
			
			
			
			String StrParam = "<xml><sign>A14E584C94CDEDA4B75FF85750440BEB</sign><mch_id>1453527302</mch_id><sign_type>MD5</sign_type><appid>wx394240ecef75c40a</appid><nonce_str>123123123123</nonce_str></xml>";
    		String dd = HttpUtil.httpsRequest("https://apitest.mch.weixin.qq.com/sandboxnew/pay/getsignkey", "POST", StrParam, 3000);
			
			System.out.println(dd);
			
			
			
			
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    	
    	
    	
    }
}
